c program to find second largest and second smallest number in an array